package com.qk.management.aop.anno;

import com.qk.common.constant.CacheConstants;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

/**
 * @author: byLengs
 * @Date: 2025/10/18 9:58
 * @Description:
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {

    String key() default "";
    String keyPrefix() default CacheConstants.CACHE_PORTAL_KEY_PREFIX;
    long expireTime() default 24*60L;
    TimeUnit timeUnit() default TimeUnit.MINUTES;
}
